#include <stdlib.h>
#include <stdio.h>

int main(int argc, char **argv)
{
    char *val = getenv("HOME");
    if (val == NULL)
    {
        printf("Cannot find the HOME environment variable\n");
        return 1;
    }
    printf("%s\n", val);
}